package com.svse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动程序
 */
@SpringBootApplication()

public class MyApp extends SpringBootServletInitializer {
    private static Logger log = LoggerFactory.getLogger(MyApp.class);

    public static void main(String[] args) {
        SpringApplication.run(MyApp.class, args);
        log.info("==== SpringBoot web Start Success ====");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        log.info("==== SpringBoot web Start Success ====");
        return application.sources(MyApp.class);
    }

}
